package com.apestech.framework.run.modul;

import java.util.Vector;

public class ExecListParam {

    private Vector<ExecSingleParam>  list=new Vector<ExecSingleParam>();

    public void addMethod(String className, String methodName, Object input, Object output){
        ExecSingleParam param=new ExecSingleParam();
        param.addMethod(className, methodName, input, output);
        this.list.add(param);
    }

    public void addQuery(String queryId, Object input, Object output){
        ExecSingleParam param=new ExecSingleParam();
        param.addQuery(queryId, input, output);
        this.list.add(param);
    }

    public void addPricingProcess(String pricingProcessId, Object input, Object output){
        ExecSingleParam param=new ExecSingleParam();
        param.addPricingProcess(pricingProcessId, input, output);
        this.list.add(param);
    }

    public void addRuleEngine(String ruleEngineId, Object input, Object output){
        ExecSingleParam param=new ExecSingleParam();
        param.addRuleEngine(ruleEngineId, input, output);
        this.list.add(param);
    }

    public void addCondition(String conditionId, Object input, Object output){
        ExecSingleParam param=new ExecSingleParam();
        param.addRuleEngine(conditionId, input, output);
        this.list.add(param);
    }

    public void addHttp(String http, Object input, Object output){
        ExecSingleParam param=new ExecSingleParam();
        param.addRuleEngine(http, input, output);
        this.list.add(param);
    }

    public int size(){
        return this.list.size();
    }

    public ExecSingleParam get(int index){
        return this.list.get(index);
    }

    public String getClassName(int index){
        return this.list.get(index).getClassName();
    }

    public String getMethodName(int index){
        return this.list.get(index).getMethodName();
    }

    public String getQueryId(int index){
        return this.list.get(index).getQueryId();
    }

    public String getHttp(int index){
        return this.list.get(index).getHttp();
    }

    public String getConditionId(int index){
        return this.list.get(index).getConditionId();
    }

    public String getPricingProcessId(int index){
        return this.list.get(index).getPricingProcessId();
    }

    public String getRuleEngineId(int index){
        return this.list.get(index).getRuleEngineId();
    }

    public String getType(int index){
        return this.list.get(index).getType();
    }

    public Object getInput(int index){
        return this.list.get(index).getInput();
    }

    public Object getOutput(int index){
        return this.list.get(index).getOutput();
    }

    public boolean hasInput(int index){
        return this.list.get(index).hasInput();
    }

    public boolean hasOutput(int index){
        return this.list.get(index).hasOutput();
    }

    public String toString(){
        return this.list.toString();
    }

}
